package com.huiyujinrong.qiangdanbao.model;

import com.huiyujinrong.qiangdanbao.bean.RegisterBean;
import com.huiyujinrong.qiangdanbao.network.AppService;

import javax.inject.Inject;

import happyloan.core.EventBusUtil;

public class RegisterModel {
    private AppService service;

    @Inject RegisterModel(AppService service) {
        this.service = service;
    }
    public void sendCode(String tel,int code_type){
        EventBusUtil<String> util = new EventBusUtil<>();
        util.sendEvent4Call(service.sendCode(tel,code_type));
    }

    public void register(String tel,String sms,String password){
        EventBusUtil<RegisterBean> util = new EventBusUtil<>();
        util.sendEvent4Call(service.register(tel,sms,password));
    }

}
